package com.bdqn.shequ.modules.sys.utils;

/**
 * @Title: http://www.smschinese.cn/api.shtml
 * @date 2011-3-22
 * @version V1.2  
 */
public class test {
	
	//用户名
	private static String Uid = "lrk123456";
	
	//接口安全秘钥
	//private static String Key = "d41d8cd98f00b204e980";

	private static String Key = "d41d8cd98f00b204e980";
	
	//手机号码，多个号码如13800000000,13800000001,13800000002
	//private static String smsMob = "15503743732";
	
	//短信内容
	//private static String smsText = "验证码：8888 【启航社区】";
	
	
	public boolean  xinxi(String smsText,String smsMob) {
		HttpClientUtil client = HttpClientUtil.getInstance();
		//UTF发送
		int result = client.sendMsgUtf8(Uid, Key, smsText, smsMob);
		if(result>0){
			System.out.println("UTF8成功发送条数=="+result);
			return  true;
		}else{
			System.out.println(client.getErrorMsg(result));
			return  false;
		}
	}
}
